package com.security.exception;

public enum CustomExceptionType {

    USER_INPUT_ERROR(400,"用户输入异常"),

    SYSTEM_ERROR(500,"系统服务异常"),

    OTHER_ERROR(999,"其他异常");

    CustomExceptionType(int code, String typeDecs){
        this.code = code;
        this.typeDecs = typeDecs;
    }

    private String typeDecs;

    private int code;

    public String getTypeDecs(){
        return typeDecs;
    }

    public int getCode(){
        return code;
    }

}
